<div class="admin-content">
    <div class="am-cf am-padding">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">服务</strong> /
            <small>添加</small>
            <div>
                <a href="JavaScript:history.go(-1)">
                    <span class="glyphicon glyphicon-chevron-left">返回</span>
                </a>
            </div>
        </div>
    </div>

    <hr>

    <form style="margin-left: 10px" name="userForm" ng-submit="add(service)" novalidate>

        <div class="form-group">
            <label class="am-text-primary am-text-lg">服务名称</label>
            <input type="text" ng-model="service.name" class="form-control" ng-blur="checkname(service.name)" required>
        </div>
        <div class="form-group">
            <label class="am-text-primary am-text-lg">服务logo</label>
            <div style="margin-left: 100px">
                <span>修改图片</span>
                <input type="file" ngf-select ng-model="logoFile" name="file" ng-change="uploadLogo(logoFile)">
            </div>
        </div>
        <div class="form-group">
            <label class="am-text-primary am-text-lg">服务内容</label>
            <input type="text" ng-model="service.content" class="form-control" required>
        </div>
        <div class="form-group">
            <label class="am-text-primary am-text-lg">服务区域</label>
            <input type="text" ng-model="service.scope" class="form-control" required>
        </div>
        <div class="form-group">
            <label class="am-text-primary am-text-lg">服务排序</label>
            <input type="text" ng-model="service.seq" class="form-control" required>
        </div>
        <div class="form-group">
            <label class="am-text-primary am-text-lg">服务等级</label>
            <input type="text" ng-model="service.privilege" class="form-control" required>
        </div>
        <div class="form-group">
            <label class="am-text-primary am-text-lg">服务url</label>
            <input type="text" ng-model="service.url" class="form-control" required>
        </div>
        <div class="am-form-group">
            <div class="am-u-sm-9 am-u-sm-push-3">
                <button type="submit" class="am-btn am-btn-primary" ng-disabled="userForm.$invalid">添加</button>
            </div>
        </div>
    </form>

</div>

